using System;
using System.Collections;
using System.Collections.Generic;

using Dashboard;
using Dashboard.Util;
using Dashboard.Mint.Tiles;

using Gtk;

namespace Dashboard.Latte
{
	public class TilePage : VBox
	{
		public TilePage () 
		{
			base.BorderWidth = 5;
		}

		public void AddTile (TileFlat tile)
		{
			PackStart (tile, false, true, 0);
		}

		public void RemoveTile (TileFlat tile)
		{
			Remove (tile);
		}

		public bool ContainsTile (Tile tile)
		{
			foreach (TileFlat tile_flat in Children) {
				if (tile_flat.Tile == tile)
					return true;
			}
			
			return false;
		}
	}
}
